package assets_withdraw

import (
	"context"

	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type WithdrawTypeTotalUpdateLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

// b端提现管理--提现总次数--修改
func NewWithdrawTypeTotalUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WithdrawTypeTotalUpdateLogic {
	return &WithdrawTypeTotalUpdateLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *WithdrawTypeTotalUpdateLogic) WithdrawTypeTotalUpdate(req *types.WithdrawTypeTotalUpdateReq) (resp *types.WithdrawTypeTotalUpdateRes, err error) {
	// rpc_req := &rpc.WithdrawTypeTotalUpdateReq{
	// 	Total: req.Total,
	// }
	// // 发送请求
	// _, err = l.svcCtx.AssetsRpc.PayWithdraw.WithdrawTypeTotalUpdate(l.ctx, rpc_req)
	// if err != nil {
	// 	logx.Errorf("Call ModifyVipLevelInfos error: %v", err)
	// 	return nil, err
	// }
	// 处理请求返回的结果
	// 解析、组合数据
	resp = &types.WithdrawTypeTotalUpdateRes{}

	return
}
